package stream.MultiThread;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * Created by Robo on 2018/2/23.
 */
public class ListTest {

    public static void main(String[] args) {
//        int[] arr = {1, 2, 3, 4};
//        List<Integer> list = Arrays.asList(1, 2, 3, 4);

        ArrayList<Integer> list = new ArrayList<>(Arrays.asList(1, 2, 3, 4));
//        ArrayList<Integer> list = new ArrayList<>(arr.length);
        list.add(3);
        System.out.println(list);

        Integer varInt = 3;
        final Integer fi = varInt;
        varInt = 6;
        System.out.println("fi_" + fi + "vi_" + varInt);
    }

}
